<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>理赔审核</title>
<link rel="stylesheet" type="text/css" href="../../css/mokstyle.css" />
		<style>
		a:link {text-decoration: none;}
		a:visited {text-decoration: none;}
		a:active {text-decoration: none;}
		a:hover {text-decoration:underline;padding-bottom:8px;border-bottom:1 solid black}
		</style> 
		<script type="text/javascript">
			function change(id){
				if(id=='history'){
					window.location = "/aasimp/mok/insurance/insur_showAllLpCom"
				}
			}
			function check(type,ID,beddingtype){
				if(beddingtype!=1){
					alert("已经处理过，不需要再次处理");
					return;
				}
				var jine=0;
				if(type==2){
					jine = window.prompt("理赔金额");
					if(jine==null){
						return;
					}
				}
				window.location = "/aasimp/mok/insurance/insur_checkLp?type="+type+"&ID="+ID+"&jine="+jine;
			}
			function init(){
    			if("${message}"!=""){
					alert("${message}");
				}
    		}
		</script>

</head>
<body  onload="init();">
<div id="wrap">

       <div class="header">
       		<div class="logo"><a href="/aasimp/mok/insurance/insur_index"><img src="../../images/logo.gif" alt="" title="" border="0" /></a></div>            
        <div id="menu">
            <ul>                                                                       
            <li><a href="/aasimp/mok/insurance/insur_index">首页</a></li>
            <li><a href="personInfo.jsp">个人保险信息</a></li>
            <li><a href="/aasimp/mok/insurance/insur_showAllLp">车辆理赔信息</a></li>
            <li class="selected"><a href="/aasimp/mok/insurance/insur_showAllLpCom">车辆理赔审核</a></li>
            <li><a href="/aasimp/mok/insurance/insur_showall">车辆保险套餐</a></li>
             <li><a href="/aasimp/mok/insurance/insur_showallCom">车辆保险受理</a></li>
            <li><a href="/aasimp/mok/insurance/insur_showBb">报表统计</a></li>
            </ul>
        </div>     
            
            
       </div> 
       
       
       <div class="center_content">
       	<div class="left_content" style="width: 880px">
        	<div class="crumb_nav">
            <a href="/aasimp/mok/insurance/insur_index">home</a> &gt;&gt; 车辆信息
            </div>
            <div class="title"><span class="title_icon"><img src="../../images/bullet1.gif" alt="" title="" /></span>
            <a id="a1" href="javascript:void(0)" onclick="change('history')" style="text-decoration: underline">查看历史理赔记录</a>
            </div>
			<center>
        	<div class="feat_prod_box_details" id="history" style="display: block;">
            <p class="details">
            </p>
                      <table width="100%"  border="1" align="center" cellspacing="1">
                    	<tr>
                    		<th>业务编号</th>
                    		<th>案件发生时间</th>
                    		<th>投保人编号</th>
                    		<th>受理保险单编号</th>
                    		<th>受理日期</th>
                    		<th>受理人</th>
                    		<th>案件发生原因</th>
                    		<th>案件发生地点</th>
                    		<th>损失金额(元)</th>
                    		<th>理赔金额(元)</th>
                    		<th>保险公司编号</th>
                    		<th>处理状态</th>
                    		<th>操作</th>
                    	</tr>
                    	<c:forEach var="carBedding" items="${allcarBedding}">
                    	<tr>
                    		 <td align="center">${carBedding.idBedding }</td>
                    		 <td align="center">${carBedding.taketime }</td>
                    		 <td align="center">${carBedding.idUserid }</td>
                    		 <td align="center">${carBedding.idInsurance }</td>
                    		 <td align="center">${carBedding.accepttime }</td>
                    		 <td align="center">${carBedding.accrptname }</td>
                    		 <td align="center">${carBedding.reason }</td>
                    		 <td align="center">${carBedding.locale }</td>
                    		 <td align="center">${carBedding.losspay }</td>
                    		 <td align="center">${carBedding.pay }</td>
                    		 <td align="center">${carBedding.idCompany }</td>
                    		 <td align="center">
						    <c:if test="${carBedding.type=='1'}">新</c:if>
						    <c:if test="${carBedding.type=='2'}">申请通过</c:if>
						    <c:if test="${carBedding.type=='3'}">申请未通过</c:if>
						    </td>
                    		<td><a href="javascript:void(0)" onclick="check('2','${carBedding.idBedding }',${carBedding.type})">同意理赔</a>
                    		<a href="javascript:void(0)" onclick="check('3','${carBedding.idBedding }',${carBedding.type})">不同意</a></td>
                    	</tr>
                    	 </c:forEach>
                    </table>
                     <div class="pageNo" id="pageNo">
					<a href="/aasimp/mok/insurance/insur_queryLpCom?no=1">首页</a>
					<c:if test="${sessionScope.pageNoBuy != 1}">
						<a href="/aasimp/mok/insurance/insur_queryLpCom?no=${sessionScope.pageNoBuy-1}">上一页</a>
					</c:if>
					<c:forEach var="i" begin="${sessionScope.pageNoCenterBuy -2}"
						end="${sessionScope.pageNoCenterBuy + 2}">
						<c:if test="${i <= sessionScope.totalNoBuy }">
							<c:choose>
								<c:when test="${i == sessionScope.pageNoBuy}">
									<a href="javascript:void(0)">${i}</a>
								</c:when>
								<c:otherwise>
									<a href="/aasimp/mok/insurance/insur_queryLpCom?no=${i}">${i}</a>
								</c:otherwise>
							</c:choose>
						</c:if>
					</c:forEach>
					<c:if test="${sessionScope.pageNoBuy +4 < sessionScope.totalNoBuy}">
						<a
							href="/aasimp/mok/insurance/insur_queryLpCom?no=${sessionScope.pageNoBuy+1}">下一页</a>
					</c:if>
					<a href="/aasimp/mok/insurance/insur_queryLpCom?no=${sessionScope.totalNoBuy}">末页</a>
					&nbsp;&nbsp;&nbsp;&nbsp;共有
					<label style="color: red;">
						${sessionScope.totalBuy}
					</label>
					条信息
				</div>
            </div>	
            
           </center>
            
          
            
        <div class="clear"></div>
        </div><!--end of left content-->
        
       <div class="clear"></div>
       </div><!--end of center content-->
       
              
       <div class="footer">
       	<div class="left_footer"><img src="../../images/footer_logo.gif" alt="" title="" /><br /> <a href="http://csscreme.com/freecsstemplates/" title="free templates"><img src="http://www.88web.org/logo1.gif" alt="free templates" title="free templates" border="0" /></a></div>
        <div class="right_footer">
        <a href="#">home</a>
        <a href="#">about us</a>
        <a href="#">services</a>
        <a href="#">privacy policy</a>
        <a href="#">contact us</a>
        </div>
        
       
       </div>
    

</div>
</body>
</html>